Page move undo feature
[lhc/web/wiklou.git] / languages / Language.php
index 1b4254b..0b10bd2 100644 (file)
@@ -43,7 +43,7 @@ if($wgMetaNamespace === FALSE)
        NS_HELP             => 'Help',
        NS_HELP_TALK        => 'Help_talk',
        NS_CATEGORY         => 'Category',
-       NS_CATEGORY_TALK    => 'Category_talk'
+       NS_CATEGORY_TALK    => 'Category_talk',
 );
 
 if(isset($wgExtraNamespaces)) {
@@ -51,14 +51,36 @@ if(isset($wgExtraNamespaces)) {
 }
 
 /* private */ $wgDefaultUserOptionsEn = array(
-       'quickbar' => 1, 'underline' => 1, 'hover' => 1,
-       'cols' => 80, 'rows' => 25, 'searchlimit' => 20,
-       'contextlines' => 5, 'contextchars' => 50,
-       'skin' => $wgDefaultSkin, 'math' => 1, 'rcdays' => 7, 'rclimit' => 50,
-       'highlightbroken' => 1, 'stubthreshold' => 0,
-       'previewontop' => 1, 'editsection'=>1,'editsectiononrightclick'=>0, 'showtoc'=>1,
-       'showtoolbar' =>1,
-       'date' => 0, 'imagesize' => 2
+       'quickbar'              => 1,
+       'underline'             => 1,
+       'cols'                  => 80,
+       'rows'                  => 25,
+       'searchlimit'           => 20,
+       'contextlines'          => 5,
+       'contextchars'          => 50,
+       'skin'                  => $wgDefaultSkin,
+       'math'                  => 1,
+       'rcdays'                => 7,
+       'rclimit'               => 50,
+       'highlightbroken'       => 1,
+       'stubthreshold'         => 0,
+       'previewontop'          => 1,
+       'editsection'           => 1,
+       'editsectiononrightclick'=> 0,
+       'showtoc'               => 1,
+       'showtoolbar'           => 1,
+       'date'                  => 0,
+       'imagesize'             => 2,
+       'rememberpassword'      => 0,
+       'enotifwatchlistpages'  => 1,
+       'enotifusertalkpages'   => 1,
+       'enotifminoredits'      => 0,
+       'enotifrevealaddr'      => 0,
+       'shownumberswatching'   => 1,
+       'rcusemodstyle'         => 1,
+       'showupdated'           => 1,
+       'fancysig' => 0,
+       'externaleditor' => 0,
 );
 
 /* private */ $wgQuickbarSettingsEn = array(
@@ -100,15 +122,14 @@ define( 'MW_DATE_DEFAULT', false );
 define( 'MW_DATE_USER_FORMAT', true );
 
 /* private */ $wgDateFormatsEn = array(
-       'No preference',
-       'January 15, 2001',
-       '15 January 2001',
-       '2001 January 15',
-       '2001-01-15'
+       'Default',
+       '16:12, January 15, 2001',
+       '16:12, 15 January 2001',
+       '16:12, 2001 January 15',
+       'ISO 8601' => '2001-01-15 16:12:34'
 );
 
 /* private */ $wgUserTogglesEn = array(
-       'hover',
        'underline',
        'highlightbroken',
        'justify',
@@ -127,6 +148,15 @@ define( 'MW_DATE_USER_FORMAT', true );
        'previewontop',
        'previewonfirst',
        'nocache',
+       'enotifwatchlistpages',
+       'enotifusertalkpages',
+       'enotifminoredits',
+       'enotifrevealaddr',
+       'shownumberswatching',
+       'rcusemodstyle',
+       'showupdated',
+       'fancysig',
+       'externaleditor'
 );
 
 /* private */ $wgBookstoreListEn = array(
@@ -179,12 +209,13 @@ $wgLanguageNamesEn =& $wgLanguageNames;
        MAG_START                => array( 0,    '__START__'              ),
        MAG_CURRENTMONTH         => array( 1,    'CURRENTMONTH'           ),
        MAG_CURRENTMONTHNAME     => array( 1,    'CURRENTMONTHNAME'       ),
+       MAG_CURRENTMONTHNAMEGEN  => array( 1,    'CURRENTMONTHNAMEGEN'    ),
+       MAG_CURRENTMONTHABBREV   => array( 1,    'CURRENTMONTHABBREV'     ),
        MAG_CURRENTDAY           => array( 1,    'CURRENTDAY'             ),
        MAG_CURRENTDAYNAME       => array( 1,    'CURRENTDAYNAME'         ),
        MAG_CURRENTYEAR          => array( 1,    'CURRENTYEAR'            ),
        MAG_CURRENTTIME          => array( 1,    'CURRENTTIME'            ),
        MAG_NUMBEROFARTICLES     => array( 1,    'NUMBEROFARTICLES'       ),
-       MAG_CURRENTMONTHNAMEGEN  => array( 1,    'CURRENTMONTHNAMEGEN'    ),
        MAG_PAGENAME             => array( 1,    'PAGENAME'               ),
        MAG_PAGENAMEE            => array( 1,    'PAGENAMEE'              ),
        MAG_NAMESPACE            => array( 1,    'NAMESPACE'              ),
@@ -205,7 +236,12 @@ $wgLanguageNamesEn =& $wgLanguageNames;
        MAG_LOCALURL             => array( 0,    'LOCALURL:'              ),
        MAG_LOCALURLE            => array( 0,    'LOCALURLE:'             ),
        MAG_SERVER               => array( 0,    'SERVER'                 ),
-       MAG_GRAMMAR              => array( 0,    'GRAMMAR:'               )
+       MAG_GRAMMAR              => array( 0,    'GRAMMAR:'               ),
+       MAG_NOTITLECONVERT       => array( 0,    '__NOTITLECONVERT__', '__NOTC__'),
+       MAG_NOCONTENTCONVERT     => array( 0,    '__NOCONTENTCONVERT__', '__NOCC__'),
+       MAG_CURRENTWEEK          => array( 1,    'CURRENTWEEK'            ),
+       MAG_CURRENTDOW           => array( 1,    'CURRENTDOW'             ),
+       MAG_REVISIONID           => array( 1,    'REVISIONID'             ),    
 );
 
 #-------------------------------------------------------------------
@@ -222,18 +258,17 @@ global $wgRightsText;
 'special_version_prefix' => ' ',
 'special_version_postfix' => ' ',
 # User preference toggles
-'tog-hover'            => 'Show hoverbox over wiki links',
 'tog-underline' => 'Underline links',
 'tog-highlightbroken' => 'Format broken links <a href="" class="new">like this</a> (alternative: like this<a href="" class="internal">?</a>).',
 'tog-justify'  => 'Justify paragraphs',
 'tog-hideminor' => 'Hide minor edits in recent changes',
 'tog-usenewrc' => 'Enhanced recent changes (not for all browsers)',
 'tog-numberheadings' => 'Auto-number headings',
-'tog-showtoolbar'=>'Show edit toolbar',
+'tog-showtoolbar'              => 'Show edit toolbar',
 'tog-editondblclick' => 'Edit pages on double click (JavaScript)',
-'tog-editsection'=>'Enable section editing via [edit] links',
-'tog-editsectiononrightclick'=>'Enable section editing by right clicking<br /> on section titles (JavaScript)',
-'tog-showtoc'=>'Show table of contents<br />(for pages with more than 3 headings)',
+'tog-editsection'              => 'Enable section editing via [edit] links',
+'tog-editsectiononrightclick'  => 'Enable section editing by right clicking<br /> on section titles (JavaScript)',
+'tog-showtoc'                  => 'Show table of contents<br />(for pages with more than 3 headings)',
 'tog-rememberpassword' => 'Remember password across sessions',
 'tog-editwidth' => 'Edit box has full width',
 'tog-watchdefault' => 'Add pages you edit to your watchlist',
@@ -241,6 +276,15 @@ global $wgRightsText;
 'tog-previewontop' => 'Show preview before edit box and not after it',
 'tog-previewonfirst' => 'Show preview on first edit',
 'tog-nocache' => 'Disable page caching',
+'tog-enotifwatchlistpages'     => 'Send me an email on page changes (remark: existing notification flags need to be cleared manually in the watchlist)',
+'tog-enotifusertalkpages'      => 'Send me an email when my user talk page is changed (remark: existing notification flags need to be cleared manually in the watchlist)',
+'tog-enotifminoredits'                 => 'Send me an email also for minor edits of pages (which usually do not trigger notification mails)',
+'tog-enotifrevealaddr'                 => 'Reveal my email address in notification mails (when I change a page, it allows watching users to reply quickly to me)',
+'tog-shownumberswatching'      => 'Show the number of watching users (in recent changes view, watchlist and article page footers)',
+'tog-rcusemodstyle'            => 'Show recent changes in UseMod style: only the most recent change of any page is listed.',
+'tog-showupdated'              => 'Show update marker ',
+'tog-fancysig' => 'Raw signatures (without automatic link)',
+'tog-externaleditor' => 'Use external editor by default',
 
 # dates
 'sunday' => 'Sunday',
@@ -294,21 +338,21 @@ and the [http://meta.wikipedia.org/wiki/MediaWiki_User%27s_Guide User's Guide] f
 'portal'               => 'Community portal',
 'portal-url'           => 'Project:Community Portal',
 'about'                        => 'About',
-"aboutsite"      => "About {{SITENAME}}",
-"aboutpage"            => "Project:About",
+'aboutsite'      => 'About {{SITENAME}}',
+'aboutpage'            => 'Project:About',
 'article' => 'Content page',
 'help'                 => 'Help',
-"helppage"             => "Help:Contents",
-"wikititlesuffix" => "{{SITENAME}}",
-"bugreports"   => "Bug reports",
-"bugreportspage" => "Project:Bug_reports",
+'helppage'             => 'Help:Contents',
+'wikititlesuffix' => '{{SITENAME}}',
+'bugreports'   => 'Bug reports',
+'bugreportspage' => 'Project:Bug_reports',
 'sitesupport'   => '-', # To enable, something like 'Donations', 
 'sitesupport-url' => 'Project:Site support',
 'faq'                  => 'FAQ',
-"faqpage"              => "Project:FAQ",
-"edithelp"             => "Editing help",
-"newwindow"            => "(opens in new window)",
-"edithelppage" => "Help:Editing",
+'faqpage'              => 'Project:FAQ',
+'edithelp'             => 'Editing help',
+'newwindow'            => '(opens in new window)',
+'edithelppage' => 'Help:Editing',
 'cancel'               => 'Cancel',
 'qbfind'               => 'Find',
 'qbbrowse'             => 'Browse',
@@ -323,6 +367,10 @@ and the [http://meta.wikipedia.org/wiki/MediaWiki_User%27s_Guide User's Guide] f
 'anontalk'             => 'Talk for this IP',
 'navigation' => 'Navigation',
 
+# Metadata in edit box
+'metadata' => '<b>Metadata</b> (for an explanation see <a href="$1">here</a>)',
+'metadata_page' => 'Wikipedia:Metadata',
+
 # NOTE: To turn off "Current Events" in the sidebar,
 # set "currentevents" => "-"
                                       
@@ -333,10 +381,10 @@ and the [http://meta.wikipedia.org/wiki/MediaWiki_User%27s_Guide User's Guide] f
 # set "disclaimers" => "-"
 
 'disclaimers' => 'Disclaimers',
-"disclaimerpage" => "Project:General_disclaimer",
-"errorpagetitle" => "Error",
-"returnto"             => "Return to $1.",
-"tagline"              => "From {{SITENAME}}",
+'disclaimerpage' => "Project:General_disclaimer",
+'errorpagetitle' => "Error",
+'returnto'             => "Return to $1.",
+'tagline'              => "From {{SITENAME}}",
 'whatlinkshere'        => 'Pages that link here',
 'help'                 => 'Help',
 'search'               => 'Search',
@@ -348,8 +396,9 @@ and the [http://meta.wikipedia.org/wiki/MediaWiki_User%27s_Guide User's Guide] f
 'edit' => 'Edit',
 'editthispage' => 'Edit this page',
 'delete' => 'Delete',
-"deletethispage" => "Delete this page",
-"undelete_short" => "Undelete $1 edits",
+'deletethispage' => 'Delete this page',
+'undelete_short1' => 'Undelete one edit',
+'undelete_short' => 'Undelete $1 edits',
 'protect' => 'Protect',
 'protectthispage' => 'Protect this page',
 'unprotect' => 'Unprotect',
@@ -382,7 +431,7 @@ and the [http://meta.wikipedia.org/wiki/MediaWiki_User%27s_Guide User's Guide] f
 performed by users with \"sysop\" status.
 See $1.",
 'developertitle' => 'Developer access required',
-"developertext"        => "The action you have requested can only be
+'developertext'        => "The action you have requested can only be
 performed by users with \"developer\" status.
 See $1.",
 'bureaucrattitle'      => 'Bureaucrat access required',
@@ -404,7 +453,7 @@ performed by sysops with  \"bureaucrat\" status.",
 'thisisdeleted' => "View or restore $1?",
 'restorelink' => "$1 deleted edits",
 'feedlinks' => 'Feed:',
-'sitenotice'   => '', # the equivalent to wgSiteNotice
+'sitenotice'   => '-', # the equivalent to wgSiteNotice
 
 # Short words for each namespace, by default used in the 'article' tab in monobook
 'nstab-main' => 'Article',
@@ -446,6 +495,7 @@ MySQL returned error \"$3: $4\".\n",
 $1',
 'nodb'                 => "Could not select database $1",
 'cachederror'          => 'The following is a cached copy of the requested page, and may not be up to date.',
+'laggedslavemode'   => 'Warning: Page may not contain recent updates.',
 'readonly'             => 'Database locked',
 'enterlockreason' => 'Enter a reason for the lock, including an estimate
 of when the lock will be released',
@@ -493,12 +543,12 @@ You can view and copy the source of this page:",
 
 # Login and logout pages
 #
-"logouttitle"  => 'User logout',
-"logouttext" => "You are now logged out.
+'logouttitle'  => 'User logout',
+'logouttext'           => "You are now logged out.<br />
 You can continue to use {{SITENAME}} anonymously, or you can log in
 again as the same or as a different user. Note that some pages may
 continue to be displayed as if you were still logged in, until you clear
-your browser cache\n",
+your browser cache.\n",
 
 'welcomecreation' => "== Welcome, $1! ==
 
@@ -523,39 +573,60 @@ Your account has been created. Don't forget to change your {{SITENAME}} preferen
 'createaccountmail'    => 'by email',
 'badretype'            => 'The passwords you entered do not match.',
 'userexists'   => 'The user name you entered is already in use. Please choose a different name.',
-'youremail'            => 'Your email*',
+'youremail'            => 'Your email**',
 'yourrealname'         => 'Your real name*',
 'yourlanguage' => 'Interface language',
 'yourvariant'  => 'Language variant',
 'yournick'             => 'Your nickname (for signatures)',
-'emailforlost' => "Fields marked with a star (*) are optional.  Storing an email address enables people to contact you through the website without you having to reveal your
+'emailforlost'         => "Fields marked with stars (*, **) are optional.  Storing an email address enables people to contact you through the website without you having to reveal your
 email address to them, and it can be used to send you a new password if you forget it.<br /><br />Your real name, if you choose to provide it, will be used for giving you attribution for your work.",
+'prefs-help-email'     => '** <strong>Email</strong> (optional): Enables others to contact you through your user or user_talk page without the need of revealing your
+email address. It also allows the wiki to sent you a temporary password in case you forgot your current one.',
+'prefs-help-email-enotif' => 'This address is also used to send you email notifications if you enabled the options.',
+'prefs-help-realname'  => '* <strong>Real name</strong> (optional): if you choose to provide it this will be used for giving you attribution for your work.',
 'prefs-help-userdata' => '* <strong>Real name</strong> (optional): if you choose to provide it this will be used for giving you attribution for your work.<br />
 * <strong>Email</strong> (optional): Enables people to contact you through the website without you having to reveal your
 email address to them, and it can be used to send you a new password if you forget it.',
 'loginerror'   => 'Login error',
 'nocookiesnew' => "The user account was created, but you are not logged in. {{SITENAME}} uses cookies to log in users. You have cookies disabled. Please enable them, then log in with your new username and password.",
-"nocookieslogin"       => "{{SITENAME}} uses cookies to log in users. You have cookies disabled. Please enable them and try again.",
+'nocookieslogin'       => "{{SITENAME}} uses cookies to log in users. You have cookies disabled. Please enable them and try again.",
 'noname'               => 'You have not specified a valid user name.',
 'loginsuccesstitle' => 'Login successful',
 'loginsuccess' => "You are now logged in to {{SITENAME}} as \"$1\".",
 'nosuchuser'   => "There is no user by the name \"$1\".
 Check your spelling, or use the form below to create a new user account.",
 'nosuchusershort'      => "There is no user by the name \"$1\". Check your spelling.",
-'wrongpassword'        => 'The password you entered is incorrect. Please try again.',
-'mailmypassword' => 'Mail me a new password',
-'passwordremindertitle' => "Password reminder from {{SITENAME}}",
-'passwordremindertext' => "Someone (probably you, from IP address $1)
-requested that we send you a new {{SITENAME}} login password.
-The password for user \"$2\" is now \"$3\".
-You should log in and change your password now.",
+'wrongpassword'                => 'The password you entered is incorrect (or missing). Please try again.',
+'mailmypassword'       => 'Mail me a temporary password',
+'mailmypasswordauthent'        => 'Mail me a temporary password',
+'passwordremindermailsubject' => "Email address authentication and temporary login password from {{SITENAME}}",
+'passwordremindermailbody'     => "Someone, probably you from IP address $1,
+requested that we send you a temporary one-time login password for {{SITENAME}}.
+
+This mail is also be sent for the purpose of authentication of your email address.
+The password for user \"$2\" is now \"$4\".
+
+You can now log in with this temporary password, which is valid for only one login.
+You may wish to keep using your old password if you remember it or to set a new one.
+
+{{SERVER}}{{localurl:Special:Userlogin|wpName=$3&wpPassword=$4&returnto=Special:Preferences}}",
 'noemail'              => "There is no e-mail address recorded for user \"$1\".",
-'passwordsent' => "A new password has been sent to the e-mail address
+'passwordsent'         => "A temporary password has been sent to the e-mail address
 registered for \"$1\".
 Please log in again after you receive it.",
+'passwordsentforemailauthentication'
+                       =>  "A temporary password has been sent to the e-mail address newly
+registered for \"$1\".
+Please re-login with that for authentication purposes.",
 'loginend'             => '&nbsp;',
 'mailerror' => "Error sending mail: $1",
 'acct_creation_throttle_hit' => 'Sorry, you have already created $1 accounts. You can\'t make any more.',
+'emailauthenticated'   => 'Your email address was authenticated on $1.',
+'emailnotauthenticated'        => 'Your email address is <strong>not yet authenticated</strong> and the advanced email features are disabled until authentication <strong>(d.u.a.)</strong>.<br />
+To authenticate, please login in with the temporary password which has been mailed to you, or request a new one on the login page.',
+'invalidemailaddress'  => 'The email address cannot be accepted as it appears to have an invalid format. Please enter a well-formatted address or empty that field.',
+'disableduntilauthent' => '<strong>(d.u.a.)</strong>',
+'disablednoemail'      => '<strong>(disabled; no email address)</strong>',
 
 # Edit page toolbar
 'bold_sample'=>'Bold text',
@@ -586,11 +657,12 @@ Please log in again after you receive it.",
 #
 'summary'              => 'Summary',
 'subject'              => 'Subject/headline',
-'minoredit'            => 'This is a minor edit',
+'minoredit'            => 'This is a minor edit.',
 'watchthis'            => 'Watch this page',
 'savearticle'  => 'Save page',
 'preview'              => 'Preview',
 'showpreview'  => 'Show preview',
+'showdiff'     => 'Show changes',
 'blockedtitle' => 'User is blocked',
 'blockedtext'  => "Your user name or IP address has been blocked by $1.
 The reason given is this:<br />''$2''<p>You may contact $1 or one of the other
@@ -693,6 +765,7 @@ Please check the URL you used to access this page.\n",
 Legend: (cur) = difference with current version,
 (last) = difference with preceding version, M = minor edit.',
 'history_copyright'    => '-',
+'deletedrev' => '[deleted]',
 
 # Diffs
 #
@@ -739,25 +812,30 @@ $1<br />
 $2 List redirects &nbsp; Search for $3 $9",
 "searchdisabled" => '<p style="margin: 1.5em 2em 1em">{{SITENAME}} search is disabled for performance reasons. You can search via Google in the meantime.
 <span style="font-size: 89%; display: block; margin-left: .2em">Note that their indexes of {{SITENAME}} content may be out of date.</span></p>',
-'googlesearch' => "
-<!-- SiteSearch Google -->
-<FORM method=GET action=\"http://www.google.com/search\">
-<TABLE bgcolor=\"#FFFFFF\"><tr><td>
-<A HREF=\"http://www.google.com/\">
-<IMG SRC=\"http://www.google.com/logos/Logo_40wht.gif\"
-border=\"0\" ALT=\"Google\"></A>
-</td>
-<td>
-<INPUT TYPE=text name=q size=31 maxlength=255 value=\"$1\">
-<INPUT type=submit name=btnG VALUE=\"Google Search\">
-<font size=-1>
-<input type=hidden name=domains value=\"{{SERVER}}\"><br /><input type=radio name=sitesearch value=\"\"> WWW <input type=radio name=sitesearch value=\"{{SERVER}}\" checked> {{SERVER}} <br />
-<input type='hidden' name='ie' value='$2'>
-<input type='hidden' name='oe' value='$2'>
-</font>
-</td></tr></TABLE>
-</FORM>
-<!-- SiteSearch Google -->",
+
+'googlesearch' => '
+<div style="margin-left: 2em">
+
+<!-- Google search -->
+<div style="width:130px;float:left;text-align:center;position:relative;top:-8px"><a href="http://www.google.com/" style="padding:0;background-image:none"><img src="http://www.google.com/logos/Logo_40wht.gif" alt="Google" style="border:none" /></a></div>
+
+<form method="get" action="http://www.google.com/search" style="margin-left:135px">
+  <div>
+    <input type="hidden" name="domains" value="{{SERVER}}" />
+    <input type="hidden" name="num" value="50" />
+    <input type="hidden" name="ie" value="$2" />
+    <input type="hidden" name="oe" value="$2" />
+    
+    <input type="text" name="q" size="31" maxlength="255" value="$1" />
+    <input type="submit" name="btnG" value="Google Search" />
+  </div>
+  <div style="font-size:90%">
+    <input type="radio" name="sitesearch" id="gwiki" value="{{SERVER}}" checked="checked" /><label for="gwiki">{{SITENAME}}</label>
+    <input type="radio" name="sitesearch" id="gWWW" value="" /><label for="gWWW">WWW</label>
+  </div>
+</form>
+
+</div>',
 'blanknamespace' => '(Main)',
 
 # Preferences page
@@ -797,7 +875,7 @@ See [[Project:User preferences help]] for help deciphering the options.",
 'textboxsize'  => 'Editing',
 'rows'                 => 'Rows',
 'columns'              => 'Columns',
-'searchresultshead' => 'Search result settings',
+'searchresultshead' => 'Search results',
 'resultsperpage' => 'Hits to show per page',
 'contextlines' => 'Lines to show per hit',
 'contextchars' => 'Characters of context per line',
@@ -819,8 +897,8 @@ from server time (UTC).',
 #
 
 # switching pan
-'userlevels-lookup-group' => 'Manage group rights',
-'userlevels-group-edit' => 'Existent groups: ',
+'grouplevels-lookup-group' => 'Manage group rights',
+'grouplevels-group-edit' => 'Existing groups: ',
 'editgroup' => 'Edit Group',
 'addgroup' => 'Add Group',
 
@@ -829,19 +907,21 @@ from server time (UTC).',
 'editusergroup' => 'Edit User Groups',
 
 # group editing
-'userlevels-editgroup' => 'Edit group',
-'userlevels-addgroup' => 'Add group',
-'userlevels-editgroup-name' => 'Group name: ',
-'userlevels-editgroup-description' => 'Group description (max 255 characters):<br />',
+'grouplevels-editgroup' => 'Edit group',
+'grouplevels-addgroup' => 'Add group',
+'grouplevels-editgroup-name' => 'Group name: ',
+'grouplevels-editgroup-description' => 'Group description (max 255 characters):<br />',
 'savegroup' => 'Save Group',
 
 # user groups editing
+#
 'userlevels-editusergroup' => 'Edit user groups',
 'saveusergroups' => 'Save User Groups',
 'userlevels-groupsmember' => 'Member of:',
 'userlevels-groupsavailable' => 'Available groups:',
 'userlevels-groupshelp' => 'Select groups you want the user to be removed from or added to.
-Unselected groups will not be changed. You can unselect a group by using CTRL + Left Click',
+Unselected groups will not be changed. You can deselect a group with CTRL + Left Click',
+
 # Recent changes
 #
 'changes' => 'changes',
@@ -866,6 +946,8 @@ Unselected groups will not be changed. You can unselect a group by using CTRL +
 'minoreditletter' => 'm',
 'newpageletter' => 'N',
 'sectionlink' => '&rarr;',
+'number_of_watching_users_RCview'      => '[$1]',
+'number_of_watching_users_pageview'    => '[$1 watching user/s]',
 
 # Upload
 #
@@ -929,7 +1011,7 @@ agrees to license it under the terms of the $1.",
 'illegalfilename'      => 'The filename "$1" contains characters that are not allowed in page titles. Please rename the file and try uploading it again.',
 'badfilename'  => "Image name has been changed to \"$1\".",
 'badfiletype'  => "\".$1\" is not a recommended image file format.",
-'largefile'            => 'It is recommended that images not exceed 100k in size.',
+'largefile'            => 'It is recommended that images not exceed $1 bytes in size, this file is $2 bytes',
 'emptyfile'            => 'The file you uploaded seems to be empty. This might be due to a typo in the file name. Please check whether you really want to upload this file.',
 'fileexists'           => 'A file with this name exists already, please check $1 if you are not sure if you want to change it.',
 'successfulupload' => 'Successful upload',
@@ -939,7 +1021,7 @@ in information about the file, such as where it came from, when it was
 created and by whom, and anything else you may know about it. If this is an image, you can insert it like this: <tt><nowiki>[[Image:$1|thumb|Description]]</nowiki></tt>",
 'uploadwarning' => 'Upload warning',
 'savefile'             => 'Save file',
-'uploadedimage' => "uploaded \"$1\"",
+'uploadedimage' => "uploaded \"[[$1]]\"",
 'uploaddisabled' => 'Sorry, uploading is disabled.',
 'uploadcorrupt' => 'The file is corrupt or has an incorrect extension. Please check the file and upload again.',
 
@@ -951,7 +1033,6 @@ created and by whom, and anything else you may know about it. If this is an imag
 'ilshowmatch'  => 'Show all images with names matching',
 'ilsubmit'             => 'Search',
 'showlast'             => "Show last $1 images sorted $2.",
-'all'                  => 'all',
 'byname'               => 'by name',
 'bydate'               => 'by date',
 'bysize'               => 'by size',
@@ -995,7 +1076,7 @@ That comes to '''$5''' average edits per page, and '''$6''' views per edit.",
 'maintenancebacklink'  => 'Back to Maintenance Page',
 'disambiguations'      => 'Disambiguation pages',
 'disambiguationspage'  => "Project:Links_to_disambiguating_pages",
-'disambiguationstext'  => "The following pages link to a <i>disambiguation page</i>. They should link to the appropriate topic instead.<br />A page is treated as dismbiguation if it is linked from $1.<br />Links from other namespaces are <i>not</i> listed here.",
+'disambiguationstext'  => "The following pages link to a <i>disambiguation page</i>. They should link to the appropriate topic instead.<br />A page is treated as disambiguation if it is linked from $1.<br />Links from other namespaces are <i>not</i> listed here.",
 'doubleredirects'      => 'Double Redirects',
 'doubleredirectstext'  => "<b>Attention:</b> This list may contain false positives. That usually means there is additional text with links below the first #REDIRECT.<br />\nEach row contains links to the first and second redirect, as well as the first line of the second redirect text, usually giving the \"real\" target page, which the first redirect should point to.",
 'brokenredirects'      => 'Broken Redirects',
@@ -1033,11 +1114,13 @@ That comes to '''$5''' average edits per page, and '''$6''' views per edit.",
 'listadmins'   => 'Admins list',
 'specialpages' => 'Special pages',
 'spheading'            => 'Special pages for all users',
+'restrictedpheading'   => 'Restricted special pages',
 'asksqlpheading' => 'asksql level',
 'blockpheading' => 'block level',
 'createaccountpheading' => 'createaccount level',
 'deletepheading' => 'delete level',
 'userrightspheading' => 'userrights level',
+'grouprightspheading' => 'grouprights level',
 'siteadminpheading' => 'siteadmin level',
 
 /** obsoletes
@@ -1055,11 +1138,12 @@ That comes to '''$5''' average edits per page, and '''$6''' views per edit.",
 'movethispage' => 'Move this page',
 'unusedimagestext' => '<p>Please note that other web sites may link to an image with
 a direct URL, and so may still be listed here despite being
-in active use.',
+in active use.</p>',
 'booksources'  => 'Book sources',
-'categoriespagetext' => 'The following categories exists in the wiki.',
+'categoriespagetext' => 'The following categories exist in the wiki.',
 'data' => 'Data',
-'userlevels' => 'User levels management',
+'userlevels' => 'User rights management',
+'grouplevels' => 'User group management',
 
 # FIXME: Other sites, of course, may have affiliate relations with the booksellers list
 'booksourcetext' => "Below is a list of links to other sites that
@@ -1079,15 +1163,30 @@ You can narrow down the view by selecting a log type, the user name, or the affe
 # Special:Allpages
 'nextpage'          => 'Next page ($1)',
 'articlenamespace'  => '(articles)',
-'allpagesformtext1' => 'Display pages starting at: $1',
-'allpagesformtext2' => 'Choose namespace: $1 $2',
-'allarticles'       => 'All articles',
-'allpagesprev'      => 'Previous',
-'allpagesnext'      => 'Next',
-'allpagesnamespace' => 'All pages ($1 namespace)',
-'allpagessubmit'    => 'Go',
-
-# Email this user
+'allpagesformtext' => '
+<table border="0">
+       <tr>
+               <td align="right">Display pages starting at:</td>
+               <td align="left">$1</td>
+       </tr>
+       <tr>
+               <td align="right">Namespace:</td>
+               <td align="left">$2 $3</td>
+       </tr>
+       <tr>
+               <td align="right">$4</td>
+               <td align="left">Invert</td>
+       </tr>
+</table>',
+'allarticles'          => 'All articles',
+'allnonarticles'       => 'All non-articles',
+'allinnamespace'       => 'All pages ($1 namespace)',
+'allnotinnamespace'    => 'All pages (not in $1 namespace)',
+'allpagesprev'         => 'Previous',
+'allpagesnext'         => 'Next',
+'allpagessubmit'       => 'Go',
+
+# E this user
 #
 'mailnologin'  => 'No send address',
 'mailnologintext' => "You must be <a href=\"{{localurl:Special:Userlogin\">logged in</a>
@@ -1145,16 +1244,51 @@ $3...
 'removechecked'        => 'Remove checked items from watchlist',
 'watchlistcontains' => "Your watchlist contains $1 pages.",
 'watcheditlist'                => 'Here\'s an alphabetical list of your
-watched pages. Check the boxes of pages you want to remove
-from your watchlist and click the \'remove checked\' button
-at the bottom of the screen.',
+watched content pages. Check the boxes of pages you want to remove from your watchlist and click the \'remove checked\' button
+at the bottom of the screen (deleting a content page also deletes the accompanying talk page and vice versa).',
 'removingchecked'      => 'Removing requested items from watchlist...',
 'couldntremove'        => "Couldn't remove item '$1'...",
 'iteminvalidname'      => "Problem with item '$1', invalid name...",
-'wlnote'                       => "Below are the last $1 changes in the last <b>$2</b> hours.",
-'wlshowlast'           => "Show last $1 hours $2 days $3",
-'wlsaved'                      => 'This is a saved version of your watchlist.',
+'wlnote'               => 'Below are the last $1 changes in the last <b>$2</b> hours.',
+'wlshowlast'           => 'Show last $1 hours $2 days $3',
+'wlsaved'              => 'This is a saved version of your watchlist.',
+'wlhideshowown'        => '$1 my edits.',
+'wlshow'               => 'Show',
+'wlhide'               => 'Hide',
+
+'updatedmarker'                => '<span class=\'updatedmarker\'>&nbsp;updated (since my last visit)&nbsp;</span>',
 
+'email_notification_mailer'            => '{{SITENAME}} Notification Mailer',
+'email_notification_infotext'          => "'''Email notification is on.'''
+You will be notified by email when someone changes a page which is listed in your watchlist.",
+'email_notification_reset'                     => 'Reset all notification flags (set their status to "visited")',
+'email_notification_newpagetext'=> 'This is a new page.',
+'email_notification_to'        => '$WATCHINGUSERNAME_QP <$WATCHINGUSEREMAILADDR>',
+'email_notification_subject'   => '{{SITENAME}} page $PAGETITLE has been changed by $PAGEEDITOR',
+'email_notification_lastvisitedrevisiontext' => 'See {{SERVER}}{{localurl:$PAGETITLE_RAWURL|diff=0&oldid=$OLDID}} for all changes since your last visit.',
+'email_notification_body' => 'Dear $WATCHINGUSERNAME,
+
+the {{SITENAME}} page $PAGETITLE has been changed on $PAGEEDITDATE by $PAGEEDITOR,
+see {{SERVER}}{{localurl:$PAGETITLE_RAWURL}} for the current version.
+
+$NEWPAGE
+
+Editor\'s summary: $PAGESUMMARY $PAGEMINOREDIT
+Contact the editor:
+mail {{SERVER}}{{localurl:Special:Emailuser|target=$PAGEEDITOR_RAWURL}}
+wiki {{SERVER}}{{localurl:User:$PAGEEDITOR_RAWURL}}
+
+There will be no other notifications in case of further changes unless you visit this page.
+You could also reset the notification flags for all your watched pages on your watchlist.
+
+             Your friendly {{SITENAME}} notification system
+
+--
+To change your watchlist settings, visit
+{{SERVER}}{{localurl:Special:Watchlist|magic=yes}}
+
+Feedback and further assistance:
+{{SERVER}}{{localurl:WikiHelpdesk}}',
 
 # Delete/protect/revert
 #
@@ -1171,7 +1305,6 @@ or image along with all of its history from the database.
 Please confirm that you intend to do this, that you understand the
 consequences, and that you are doing this in accordance with
 [[Project:Policy]].",
-'confirmcheck' => 'Yes, I really want to delete this.',
 'actioncomplete' => 'Action complete',
 'deletedtext'  => "\"$1\" has been deleted.
 See $2 for a record of recent deletions.",
@@ -1194,11 +1327,14 @@ Last edit was by [[User:$3|$3]] ([[User talk:$3|Talk]]). ",
 #   only shown if there is an edit comment
 'editcomment' => "The edit comment was: \"<i>$1</i>\".",
 'revertpage'   => "Reverted edit of $2, changed back to last version by $1",
+'sessionfailure' => 'There seems to be a problem with your login session;
+this action has been canceled as a precaution against session hijacking.
+Please hit "back" and reload the page you came from, then try again.',
 'protectlogpage' => 'Protection_log',
 'protectlogtext' => "Below is a list of page locks/unlocks.
 See [[Project:Protected page]] for more information.",
-'protectedarticle' => "protected $1",
-'unprotectedarticle' => "unprotected $1",
+'protectedarticle' => "protected \"[[$1]]\"",
+'unprotectedarticle' => "unprotected \"[[$1]]\"",
 'protectsub' =>"(Protecting \"$1\")",
 'confirmprotecttext' => 'Do you really want to protect this page?',
 'confirmprotect' => 'Confirm protection',
@@ -1233,6 +1369,13 @@ See [[Special:Log/delete]] for a record of recent deletions and restorations.",
 'contributions' => 'User contributions',
 'mycontris'     => 'My contributions',
 'contribsub'    => "For $1",
+'contributionsformtext' => '
+<table border="0">
+        <tr>
+                <td align="right">Namespace:</td>
+                <td align="left">$1 $2</td>
+        </tr>
+</table>',
 'nocontribs'    => 'No changes were found matching these criteria.',
 'ucnote'        => "Below are this user's last <b>$1</b> changes in the last <b>$2</b> days.",
 'uclinks'       => "View the last $1 changes; view the last $2 days.",
@@ -1259,7 +1402,8 @@ This should be done only only to prevent vandalism, and in
 accordance with [[Project:Policy|policy]].
 Fill in a specific reason below (for example, citing particular
 pages that were vandalized).",
-'ipaddress'            => 'IP Address/username',
+'ipaddress'            => 'IP Address',
+'ipadressorusername' => 'IP Address or username',
 'ipbexpiry'            => 'Expiry',
 'ipbreason'            => 'Reason',
 'ipbsubmit'            => 'Block this user',
@@ -1272,7 +1416,7 @@ pages that were vandalized).",
 'unblockiptext'        => 'Use the form below to restore write access
 to a previously blocked IP address or username.',
 'ipusubmit'            => 'Unblock this address',
-'ipusuccess'   => "\"$1\" unblocked",
+'ipusuccess'   => "\"[[$1]]\" unblocked",
 'ipblocklist'  => 'List of blocked IP addresses and usernames',
 'blocklistline'        => "$1, $2 blocked $3 (expires $4)",
 'blocklink'            => 'block',
@@ -1280,9 +1424,9 @@ to a previously blocked IP address or username.',
 'contribslink' => 'contribs',
 'autoblocker'  => "Autoblocked because you share an IP address with \"$1\". Reason \"$2\".",
 'blocklogpage' => 'Block_log',
-'blocklogentry'        => 'blocked "$1" with an expiry time of $2',
+'blocklogentry'        => 'blocked "[[$1]]" with an expiry time of $2',
 'blocklogtext' => 'This is a log of user blocking and unblocking actions. Automatically
-blocked IP addresses are not be listed. See the [[Special:Ipblocklist|IP block list]] for
+blocked IP addresses are not listed. See the [[Special:Ipblocklist|IP block list]] for
 the list of currently operational bans and blocks.',
 'unblocklogentry'      => 'unblocked "$1"',
 'range_block_disabled' => 'The sysop ability to create range blocks is disabled.',
@@ -1291,6 +1435,9 @@ the list of currently operational bans and blocks.',
 'proxyblocker' => 'Proxy blocker',
 'proxyblockreason'     => 'Your IP address has been blocked because it is an open proxy. Please contact your Internet service provider or tech support and inform them of this serious security problem.',
 'proxyblocksuccess'    => "Done.\n",
+'sorbs'         => 'SORBS DNSBL',
+'sorbsreason'   => 'Your IP address is listed as an open proxy in the [http://www.sorbs.net SORBS] DNSBL.',
+
 
 # Developer tools
 #
@@ -1340,15 +1487,29 @@ Type the name of the user in the box and press the button to make the user an ad
 'makesysopfail'                => "<b>User \"$1\" could not be made into a sysop. (Did you enter the name correctly?)</b>",
 'setbureaucratflag' => 'Set bureaucrat flag',
 'bureaucratlog'                => 'Bureaucrat_log',
+'rightslogtext'                => 'This is a log of changes to user rights.',
 'bureaucratlogentry'   => "Rights for user \"$1\" set \"$2\"",
 'rights'                       => 'Rights:',
 'set_user_rights'      => 'Set user rights',
 'user_rights_set'      => "<b>User rights for \"$1\" updated</b>",
 'set_rights_fail'      => "<b>User rights for \"$1\" could not be set. (Did you enter the name correctly?)</b>",
 'makesysop'         => 'Make a user into a sysop',
+'already_sysop'     => 'This user is already an administrator',
+'already_bureaucrat' => 'This user is already a bureaucrat',
 
 # Validation
-'val_clear_old' => 'Clear my other validation data for $1',
+'val_yes' => 'Yes',
+'val_no' => 'No',
+'val_revision' => 'Revision',
+'val_time' => 'Time',
+'val_list_header' => '<th>#</th><th>Topic</th><th>Range</th><th>Action</th>',
+'val_add' => 'Add',
+'val_del' => 'Delete',
+'val_warning' => '<b>Never, <i>ever</i>, change something here without <i>explicit</i> community consensus!</b>',
+'val_rev_for' => 'Revisions for ',
+'val_rev_stats_link' => 'See the validation statistics for "$1" <a href="$2">here</a>',
+'val_iamsure' => 'Check this box if you really mean it!',
+'val_clear_old' => 'Clear my older validation data',
 'val_merge_old' => 'Use my previous assessment where selected \'No opinion\'',
 'val_form_note' => '<b>Hint:</b> Merging your data means that for the article
 revision you select, all options where you have specified <i>no opinion</i>
@@ -1367,7 +1528,7 @@ merging will fill in the other options with your previous settings.',
 'val_version_of' => "Version of $1" ,
 'val_table_header' => "<tr><th>Class</th>$1<th colspan=4>Opinion</th>$1<th>Comment</th></tr>\n",
 'val_stat_link_text' => 'Validation statistics for this article',
-'val_view_version' => 'View this version',
+'val_view_version' => 'View this revision',
 'val_validate_version' => 'Validate this version',
 'val_user_validations' => 'This user has validated $1 pages.',
 'val_no_anon_validation' => 'You have to be logged in to validate an article.',
@@ -1421,8 +1582,12 @@ title. Please merge them manually.',
 'movetalk'             => 'Move "talk" page as well, if applicable.',
 'talkpagemoved' => 'The corresponding talk page was also moved.',
 'talkpagenotmoved' => 'The corresponding talk page was <strong>not</strong> moved.',
-'1movedto2'            => "$1 moved to $2",
-'1movedto2_redir' => '$1 moved to $2 over redirect',
+'1movedto2'            => "[[$1]] moved to [[$2]]",
+'1movedto2_redir' => '[[$1]] moved to [[$2]] over redirect',
+'movelogpage' => 'Move log',
+'movelogpagetext' => 'Below is a list of page moved.',
+'movereason'   => 'Reason',
+'revertmove'   => 'revert',
 
 # Export
 
@@ -1444,8 +1609,11 @@ article [[Train]].
 # Namespace 8 related
 
 'allmessages'  => 'All system messages',
+'allmessagesname' => 'Name',
+'allmessagesdefault' => 'Default text',
+'allmessagescurrent' => 'Current text',
 'allmessagestext'      => 'This is a list of all system messages available in the MediaWiki: namespace.',
-'allmessagesnotsupportedUI' => 'Your current interface language <b>$1</b> is not supported by Special:AllMessages at this site.',
+'allmessagesnotsupportedUI' => 'Your current interface language <b>$1</b> is not supported by Special:AllMessages at this site. ',
 'allmessagesnotsupportedDB' => 'Special:AllMessages not supported because wgUseDatabaseMessages is off.',
 
 # Thumbnails
@@ -1467,6 +1635,7 @@ article [[Train]].
 'accesskey-minoredit' => 'i',
 'accesskey-save' => 's',
 'accesskey-preview' => 'p',
+'accesskey-diff' => 'd',
 'accesskey-compareselectedversions' => 'v',
 
 # tooltip help for some actions, most are in Monobook.js
@@ -1474,10 +1643,11 @@ article [[Train]].
 'tooltip-minoredit' => 'Mark this as a minor edit [alt-i]',
 'tooltip-save' => 'Save your changes [alt-s]',
 'tooltip-preview' => 'Preview your changes, please use this before saving! [alt-p]',
+'tooltip-diff' => 'Show which changes you made to the text. [alt-d]',
 'tooltip-compareselectedversions' => 'See the differences between the two selected versions of this page. [alt-v]',
+'tooltip-watch' => 'Add this page to your watchlist [alt-w]',
 
 # stylesheets
-
 'Monobook.css' => '/* edit this file to customize the monobook skin for the entire site */',
 #'Monobook.js' => '/* edit this file to change js things in the monobook skin */',
 
@@ -1511,12 +1681,12 @@ article [[Train]].
 'listingcontinuesabbrev' => " cont.",
 
 # Info page
-"infosubtitle" => "Information for page",
-"numedits" => "Number of edits (article): $1",
-"numtalkedits" => "Number of edits (discussion page): $1",
-"numwatchers" => "Number of watchers: $1",
-"numauthors" => "Number of distinct authors (article): $1",
-"numtalkauthors" => "Number of distinct authors (discussion page): $1",
+'infosubtitle' => 'Information for page',
+'numedits' => 'Number of edits (article): $1',
+'numtalkedits' => 'Number of edits (discussion page): $1',
+'numwatchers' => 'Number of watchers: $1',
+'numauthors' => 'Number of distinct authors (article): $1',
+'numtalkauthors' => 'Number of distinct authors (discussion page): $1',
 
 # Math options
 'mw_math_png' => 'Always render PNG',
@@ -1636,7 +1806,34 @@ ta[\'ca-nstab-category\'] = new Array(\'c\',\'View the category page\');
 'sitesettings-performance' => 'Performance',
 'sitesettings-images' => 'Images',
 
-
+# short names for language variants used for language conversion links. 
+# to disable showing a particular link, set it to 'disable', e.g.
+# 'variantname-zh-sg' => 'disable',
+'variantname-zh-cn' => 'cn',
+'variantname-zh-tw' => 'tw',
+'variantname-zh-hk' => 'hk',
+'variantname-zh-sg' => 'sg',
+'variantname-zh' => 'zh',
+
+# Chinese conversion table
+'zhconversiontable' => '-{}-',
+
+# labels for User: and Title: on Special:Log pages
+'specialloguserlabel' => 'User: ',
+'speciallogtitlelabel' => 'Title: ',
+
+'passwordtooshort' => 'Your password is too short. It must have at least $1 characters.',
+
+# external editor support
+'edit-externally' => 'Edit this file using an external application',
+'edit-externally-help' => 'See the [http://meta.wikimedia.org/wiki/Help:External_editors setup instructions] for more information.',
+
+# 'all' in various places, this might be different for inflicted languages
+'recentchangesall' => 'all',
+'imagelistall' => 'all',
+'watchlistall1' => 'all',
+'watchlistall2' => 'all',
+'contributionsall' => 'all',
 );
 
 #--------------------------------------------------------------------------
@@ -1692,6 +1889,12 @@ class Language {
                return false;
        }
 
+       # short names for language variants used for language conversion links. 
+       # so far only used by zh
+       function getVariantname( $code ) {
+               return wfMsg( 'variantname-' . $code );
+       }
+
        function specialPage( $name ) {
                return $this->getNsText(NS_SPECIAL) . ':' . $name;
        }
@@ -1727,7 +1930,7 @@ class Language {
        }
 
        function getUserToggle( $tog ) {
-               return wfMsg("tog-".$tog);
+               return wfMsg('tog-'.$tog);
        }
 
        function getLanguageNames() {
@@ -1745,7 +1948,8 @@ class Language {
 
        function getMonthName( $key ) {
                global $wgMonthNamesEn, $wgContLang;
-               if( get_class( $wgContLang ) == get_class( $this ) )
+               // see who called us and use the correct message function
+               if( get_class( $wgContLang->getLangObj() ) == get_class( $this ) )
                        return wfMsgForContent($wgMonthNamesEn[$key-1]);
                else
                        return wfMsg($wgMonthNamesEn[$key-1]);
@@ -1758,24 +1962,29 @@ class Language {
 
        function getMonthAbbreviation( $key ) {
                global $wgMonthAbbreviationsEn, $wgContLang;
-               if( get_class( $wgContLang ) == get_class( $this ) )
+               // see who called us and use the correct message function
+               if( get_class( $wgContLang->getLangObj() ) == get_class( $this ) )
                        return wfMsgForContent(@$wgMonthAbbreviationsEn[$key-1]);
                else
                        return wfMsg(@$wgMonthAbbreviationsEn[$key-1]);
        }
 
        function getWeekdayName( $key ) {
-               global $wgWeekdayNamesEn,  $wgContLang;
-               if( get_class( $wgContLang ) == get_class( $this ) )
+               global $wgWeekdayNamesEn, $wgContLang;
+               // see who called us and use the correct message function
+               if( get_class( $wgContLang->getLangObj() ) == get_class( $this ) )
                        return wfMsgForContent($wgWeekdayNamesEn[$key-1]);
                else
                        return wfMsg($wgWeekdayNamesEn[$key-1]);
        }
 
-       function userAdjust( $ts ) {
+       function userAdjust( $ts, $tz = false ) {
                global $wgUser, $wgLocalTZoffset;
 
-               $tz = $wgUser->getOption( 'timecorrection' );
+               if (!$tz) {
+                       $tz = $wgUser->getOption( 'timecorrection' );
+               }
+
                if ( $tz === '' ) {
                        $hrDiff = isset( $wgLocalTZoffset ) ? $wgLocalTZoffset : 0;
                        $minDiff = 0;
@@ -1798,52 +2007,60 @@ class Language {
                return date( 'YmdHis', $t );
        }
 
-       function date( $ts, $adj = false, $format = MW_DATE_USER_FORMAT ) {
-               global $wgAmericanDates, $wgUser, $wgUseDynamicDates;
-
+       function date( $ts, $adj = false, $format = MW_DATE_USER_FORMAT, $timecorrection = false ) {
+               global $wgAmericanDates, $wgUser;
+               
                $ts=wfTimestamp(TS_MW,$ts);
-               if ( $adj ) { $ts = $this->userAdjust( $ts ); }
-               if ( $wgUseDynamicDates ) {
-                       if ( $format == MW_DATE_USER_FORMAT ) {
-                               $datePreference = $wgUser->getOption( 'date' );
-                       } else {
-                               $options = $this->getDefaultUserOptions();
-                               $datePreference = $options['date'];
-                       }
-                       if ( $datePreference == 0 ) {
-                               $datePreference = $wgAmericanDates ? 1 : 2;
-                       }
+
+               if ( $adj ) { $ts = $this->userAdjust( $ts, $timecorrection ); }
+
+               
+               if ( $format == MW_DATE_USER_FORMAT ) {
+                       $datePreference = $wgUser->getOption( 'date' );
                } else {
+                       $options = $this->getDefaultUserOptions();
+                       $datePreference = $options['date'];
+               }
+
+               if ($datePreference == '0') {
                        $datePreference = $wgAmericanDates ? 1 : 2;
                }
 
                $month = $this->getMonthAbbreviation( substr( $ts, 4, 2 ) );
                $day = $this->formatNum( 0 + substr( $ts, 6, 2 ) );
                $year = $this->formatNum( substr( $ts, 0, 4 ) );
-
+               
                switch( $datePreference ) {
-                       case 1: return "$month $day, $year";
-                       case 2: return "$day $month $year";
-                       default: return "$year $month $day";
+                       case '2': return "$day $month $year";
+                       case '3': return "$year $month $day";
+                       case 'ISO 8601': return substr($ts, 0, 4). '-' . substr($ts, 4, 2). '-' .substr($ts, 6, 2);
+                       default: return "$month $day, $year";
                }
        }
 
-       function time( $ts, $adj = false, $seconds = false ) {
+       function time( $ts, $adj = false, $seconds = false, $timecorrection = false ) {
+               global $wgUser;
                $ts=wfTimestamp(TS_MW,$ts);
 
-               if ( $adj ) { $ts = $this->userAdjust( $ts ); }
+               if ( $adj ) { $ts = $this->userAdjust( $ts, $timecorrection ); }
 
                $t = substr( $ts, 8, 2 ) . ':' . substr( $ts, 10, 2 );
-               if ( $seconds ) {
+               if ( $seconds || $wgUser->getOption( 'date' ) == 'ISO 8601' ) {
                        $t .= ':' . substr( $ts, 12, 2 );
                }
                return $this->formatNum( $t );
        }
-
-       function timeanddate( $ts, $adj = false, $format = MW_DATE_USER_FORMAT ) {
+       
+       function timeanddate( $ts, $adj = false, $format = MW_DATE_USER_FORMAT, $timecorrection = false, $dateandtime = false) {
+               global $wgUser;
                $ts=wfTimestamp(TS_MW,$ts);
 
-               return $this->time( $ts, $adj ) . ', ' . $this->date( $ts, $adj, $format );
+               switch ( $wgUser->getOption( 'date' ) ) {
+                       case 'ISO 8601': return $this->date( $ts, $adj, $format, $timecorrection ) . ' ' .
+                               $this->time( $ts, $adj, false, $timecorrection );
+                       default: return $this->time( $ts, $adj, false, $timecorrection ) . ', ' .
+                               $this->date( $ts, $adj, $format, $timecorrection );
+               }
        }
 
        function rfc1123( $ts ) {
@@ -1929,6 +2146,14 @@ class Language {
                return $s[0];
        }
 
+       function initEncoding() {
+               # Some languages may have an alternate char encoding option
+               # (Esperanto X-coding, Japanese furigana conversion, etc)
+               # If this language is used as the primary content language,
+               # an override to the defaults can be set here on startup.
+               #global $wgInputEncoding, $wgOutputEncoding, $wgEditEncoding;
+       }
+
        function setAltEncoding() {
                # Some languages may have an alternate char encoding option
                # (Esperanto X-coding, Japanese furigana conversion, etc)
@@ -2059,105 +2284,8 @@ class Language {
                return $text;
        }
 
-       # convert text to different variants of a language. the automatic
-       # conversion is done in autoConvert(). here we parse the text 
-       # marked with -{}-, which specifies special conversions of the 
-       # text that can not be accomplished in autoConvert()
-       #
-       # syntax of the markup:
-       # -{code1:text1;code2:text2;...}-  or
-       # -{text}- in which case no conversion should take place for text
+       # convert text to different variants of a language.
        function convert( $text , $isTitle=false) {
-               global $wgDisableLangConversion;
-               if($wgDisableLangConversion)
-                       return $text; 
-               if(sizeof($this->getVariants())<2) 
-                       return $text;
-               
-               if($isTitle)
-                       return $this->convertTitle($text);
-
-               // no conversion if redirecting
-               if(substr($text,0,9) == "#REDIRECT") {
-                       return $text;
-               }
-
-
-               $plang = $this->getPreferredVariant();
-               $fallback = $this->getVariantFallback($plang);
-
-               $tarray = explode("-{", $text);
-               $tfirst = array_shift($tarray);
-               $text = $this->autoConvert($tfirst);
-               
-               foreach($tarray as $txt) {
-                       $marked = explode("}-", $txt);
-                       
-                       $choice = explode(";", $marked{0});
-                       if(!array_key_exists(1, $choice)) {
-                               /* a single choice */
-                               $text .= $choice{0};
-                       } else {
-                               $choice1=false;
-                               $choice2=false;
-                               foreach($choice as $c) {
-                                       $v = explode(":", $c);
-                                       if(!array_key_exists(1, $v)) {
-                                               //syntax error in the markup, give up
-                                               break;                  
-                                       }
-                                       $code = trim($v{0});
-                                       $content = trim($v{1});
-                                       if($code == $plang) {
-                                               $choice1 = $content;
-                                               break;
-                                       }
-                                       if($code == $fallback)
-                                               $choice2 = $content;
-                               }
-                               if ( $choice1 )
-                                       $text .= $choice1;
-                               elseif ( $choice2 )
-                                       $text .= $choice2;
-                               else
-                                       $text .= $marked{0};
-                       }
-                       if(array_key_exists(1, $marked))
-                               $text .= $this->autoConvert($marked{1});
-               }
-               
-               return $text;
-       }
-
-       /* this does the real conversion to the preferred variant.
-          see LanguageZh.php for example
-       */
-       function autoConvert( $text, $toVariant=false ) {
-               return $text;
-       }
-
-       /* returns all possible variants of the given text
-
-          normally we will just call autoConvert() for each variant, but
-          in case of zh where the conversion is performed by zhdaemon, 
-          possibily over the network, we want to 
-          cut down the number of connections to save time. 
-       */
-       function autoConvertToAllVariants($text) {
-               $ret = array();
-               $variants = $this->getVariants();
-               if(sizeof($variants)==1) {
-                       return $false;
-               }
-               foreach( $variants as $lang=>$v ) {
-                       $ret[$v] = $this->autoConvert( $text, $v );
-               }
-               return $ret;
-       }
-
-       /* hook for converting the title, which may needs special treatment
-       */
-       function convertTitle( $text ) {
                return $text;
        }
 
@@ -2178,67 +2306,24 @@ class Language {
        }
 
        function getPreferredVariant() {
-               global $wgUser;
-
-               $lang ='';              
-
-               // if user logged in, get in from user's preference
-               if( $wgUser->getID() != 0 ) {
-                       $lang = $wgUser->getOption( 'variant' );
-               }
-               if($lang != '')
-                       return $lang;
-
-               // if we have multiple variants for this langauge, 
-               // pick the first one that's not utf8 (it could be
-               // utf8 if the language does not have a language file)
-               $v = $this->getVariants();
-               if( !empty( $v ) ) {
-                       return $v[0];
-               }
-               if($lang != '')
-                       return $lang;
-
-               // get it from the class name
-               $lang = strtolower( substr( get_class( $this ), 8 ) );
-
-               return $lang;
+               return strtolower( substr( get_class( $this ), 8 ) );
        }
 
        /* if a language supports multiple variants, it is
                possible that non-existing link in one variant
                actually exists in another variant. this function 
-               tries to find it.
+               tries to find it. See e.g. LanguageZh.php
 
        */
        function findVariantLink( &$link, &$nt ) {
-               static $count=0; //used to limit this operation
-               static $cache=array();
-               global $wgDisableLangConversion;
-               $count++;
-               if( $wgDisableLangConversion || $count > 50)
-                       return;
-               $variants = $this->autoConvertToAllVariants($link);
-               if($variants == false) //give up
-                       return;
-               foreach( $variants as $v ) {
-                       if(isset($cache[$v]))
-                               continue;
-                       $cache[$v] = 1;
-                       $varnt = Title::newFromText( $v );
-                       if( $varnt && $varnt->getArticleID() > 0 ) {
-                               $nt = $varnt;
-                               $link = $v;
-                               break;
-                       }
-               }
+               return;
        }
 
        /*
                returns an array of extra options used by User::getPageRenderHash()
        */
        function getExtraHashOptions() {
-               return array();
+               return '';
        }
        
        /**
@@ -2255,6 +2340,10 @@ class Language {
                return $trail;
        }
 
+       function getLangObj() {
+               return $this;
+       }
+
 }
 
 # This should fail gracefully if there's not a localization available